package com.hyh.order.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hyh.feign.domain.Cart;
import com.hyh.feign.domain.Product;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class Orders {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer userId;
    private Integer productId;
    private Timestamp orderTime;
    private String orderStatus;
    private String productName;
    private Integer productPrice;
    private Integer purchaseCount;
    private Long orderNumber;
    private Timestamp payTime;
    private Integer addressId;
    // 不参与查询
    @TableField(exist = false)
    private Product product;
    @TableField(exist = false)
    private Cart cart;


}
